<?php
/* @var $this MeetingroomController */
/* @var $model Meetingroom */

$this->breadcrumbs=array(
	'Meetingroom ',
        'Jadwal'
);
?>

<?php $this->beginWidget('ext.widgets.XPanel', array('title' => 'Jadwal Ruang Rapat', 'width' => 900,'height' => 500)); 
?>
<div class="form">

    <table class="ma-table">
        <tbody>
	<tr>
		<td class="labelfield" style="width:200px">
                    Nama Ruang : 
                </td>
		<td>
                    <?php echo $model->nama ?>
                </td>
	</tr>
	<tr>
		<td class="labelfield" style="width:200px">
                    Lokasi : 
                </td>
		<td>
                    <?php echo $model->lokasi ?>
                </td>
	</tr>
	<tr>
		<td class="labelfield" style="width:200px">
                    Kapasitas : 
                </td>
		<td>
                    <?php echo $model->kapasitas ?>
                </td>
	</tr>
        <tr>
            <td></td>
            <td>
               <?php 
               $this->renderPartial('_createPemakaian',array(
                    'model'=>$model,
                    'PemakaianMeetingroom' => $PemakaianMeetingroom,
                    
                )); 
               ?>

            </td>
        </tr>
        </tbody>
    </table>
</div><!-- form -->


<?php

$this->widget('application.extensions.fullcalendar.FullcalendarGraphWidget', 
    array(
        'options'=>array(
            'theme' => false,
            //'monthNames' => $monthName,
            'weekends'=> true,
            'editable'=>false,
            'height'=> 500,
            'eventClick'=> "js:function(calEvent, jsEvent, view) {
                
                 alert('start: ' + calEvent.title);
                // change the border color just for fun
                $(this).css('border-color', 'red');
            }",
            'header' => array(
                'left' => 'prev,next today',
                'centet' => 'title',
                'right' => 'month,basicWeek,basicDay'
            ),
           'events' => Yii::app()->createUrl('Meetingroom/schedule/'.$model->id_meetingroom)
        ),
        'htmlOptions'=>array(
               'style'=>'width:800px;margin: 0 auto;'
        ),
    )
);
?>

<?php $this->endWidget(); ?>